<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>工程管理</title>
<script type="text/javascript">
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/project/project">工程列表</a></li>
		<li><a href="${ctx}/project/project/form">工程添加</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="project"
		action="${ctx}/project/project" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
	</form:form>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>委托单位</th>
				<th>工程名称</th>
				<th>缩写</th>
				<th>承压设备类别</th>
				<th>监理单位</th>
				<th>施工单位</th>
				<th>负责人</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="project">
				<tr>
					<td>${project.client}</td>
					<td><a href="${ctx}/project/project/form?id=${project.id}">${project.name}</a></td>
					<td>${project.suoxie}</td>
					<td>${fns:getDictLabel(project.cysblb, 'dict_cysblb', '无')}</td>
					<td>${project.jldw}</td>
					<td>${project.sgdw}</td>
					<td>${project.fzr}</td>
					<td><a href="${ctx}/project/project/form?id=${project.id}">修改</a> <a
						href="${ctx}/project/project/delete?id=${project.id}"
						onclick="return confirmx('确认要删除该工程吗？', this.href)">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>

</body>
</html>